package com.hooya.fa.eu.biz.dao.wrapper;

import com.hooya.fa.eu.biz.dao.entity.TempXsjlDelete;
import com.hooya.integrated.common.mybatis.config.AbstractLambdaQueryWrapperProcess;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;
import org.springframework.util.CollectionUtils;

import java.util.List;

/**
 * @Description
 * @Author : Zongz
 * @Copyright Copyright (c) 豪雅集团
 * @Create 2024/10/21
 * @Version 1.0.0
 */
@Data(staticConstructor = "newQuery")
@EqualsAndHashCode(callSuper = true)
public class TempXsjlDeleteWrapper extends AbstractLambdaQueryWrapperProcess<TempXsjlDelete> {

    public TempXsjlDeleteWrapper eqPlace(String place) {
        return (TempXsjlDeleteWrapper) this.eq(StringUtils.isNotBlank(place), TempXsjlDelete::getChck, place);
    }

    public TempXsjlDeleteWrapper eqBelongs(String belongs) {
        return (TempXsjlDeleteWrapper) this.eq(StringUtils.isNotBlank(belongs), TempXsjlDelete::getBelongs, belongs);
    }

    public TempXsjlDeleteWrapper geOrderDate(String date) {
        return (TempXsjlDeleteWrapper) this.ge(StringUtils.isNotBlank(date), TempXsjlDelete::getOrderDate, date);
    }

    public TempXsjlDeleteWrapper inSku(List<String> skuList) {
        return (TempXsjlDeleteWrapper) this.in(!CollectionUtils.isEmpty(skuList), TempXsjlDelete::getCpbh, skuList);
    }
}
